#!/bin/bash

# Move old configuration to /etc/self-service-password
for file in $( find /etc/self-service-password -name "*.save" -type f );
do
    # move previously created *.save file into its equivalent without .save
    mv ${file} ${file%.save}
done

# Clean cache
rm -rf /var/cache/self-service-password/{cache,templates_c}/*
